package cn.walls1717.ggkt.live.config;

import cn.walls1717.ggkt.live.mtcloud.MTCloud;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * 欢拓云直播配置类
 *
 * @author walls1717
 * @since 2022/7/25
 */
@Component
public class MtCloudConfig {

    @Autowired
    private MtCloudAccountConfig mtCloudAccountConfig;

    @Bean
    public MTCloud mtCloudClient(){
        return new MTCloud(mtCloudAccountConfig.getOpenId(), mtCloudAccountConfig.getOpenToken());
    }
}